<include file="public/header"/>
<link rel="stylesheet" href="__STATIC__/css/weui.css">
<link rel="stylesheet" href="__STATIC__/css/weui2.css">
<link rel="stylesheet" href="//at.alicdn.com/t/font_tpjjjo4y7dabrzfr.css"/>
<header>
  <div class="tab_nav">
    <div class="header">
      <div class="h-left"><a class="sb-back" href="javascript:history.back(-1)" title="返回"></a></div>
      <div class="h-mid">我的分销</div>
      <div class="h-right">
      </div>
    </div>
  </div>
</header>
<style>
.page-bd li{
  margin:0px;
  border-bottom: 1px solid #eee
}
.weui-flex p{font-size:14px;}
.weui_cell_bd p{font-size:13px;}
</style>
<div class="page-bd">  
         <ul>
         
            <li class="">
                <div class="weui-flex js-category">
                    <span class="iconfont icon-hezuofenxiaoshang" style="color:#2AA0F8;font-size:22px;margin-right:5px"></span>
                    <p class="weui-flex-item">我的分销商</p>
                    <i class="iconfont icon-jiantouyoujiantou1"></i>
                </div>
                <div class="page-category js-categoryInner">
                    <div class="weui_cells weui_cells_access" style="margin-top: 0px;">
                        <a class="weui_cell" href="{:U('User/mydistribut_list')}?level=1">
                            <div class="weui_cell_bd weui_cell_primary">
                                <p>我的一级分销商</p>
                            </div>
                            <div class="weui_cell_ft">{$district_one_count}</div>
                        </a> 
                        <a class="weui_cell" href="{:U('User/mydistribut_list')}?level=2">
                            <div class="weui_cell_bd weui_cell_primary">
                                <p>我的二级分销商</p>
                            </div>
                            <div class="weui_cell_ft">{$district_two_count}</div>
                        </a>        
                     </div>
                </div>
            </li>
            <li class="">
                <div class="weui-flex js-category">
                    <span class="iconfont icon-money" style="color:#FE0E41;font-size:24px;margin-right:5px"></span>
                    <p class="weui-flex-item">我的分销订单</p>
                    <i class="iconfont icon-jiantouyoujiantou1"></i>
                </div>
                <div class="page-category js-categoryInner">
                    <div class="weui_cells weui_cells_access" style="margin-top: 0px;">
                        <a class="weui_cell" href="{:U('User/mydistribut_orderlist')}?statu=1">
                            <div class="weui_cell_bd weui_cell_primary">
                                <p>待支付订单</p>
                            </div>
                            <div class="weui_cell_ft">{$waitpay_order_count}</div>
                        </a> 
                        <a class="weui_cell" href="{:U('User/mydistribut_orderlist')}?statu=2">
                            <div class="weui_cell_bd weui_cell_primary">
                                <p>待收货订单</p>
                            </div>
                            <div class="weui_cell_ft">{$waitreciv_order_count}</div>
                        </a>
                        <a class="weui_cell" href="{:U('User/mydistribut_orderlist')}?statu=3">
                            <div class="weui_cell_bd weui_cell_primary">
                                <p>已完成订单</p>
                            </div>
                            <div class="weui_cell_ft">{$over_order_count}</div>
                        </a>       
                     </div>
                </div>
            </li>
     </ul>
    </div>


<include file="public/footer"/>
 <script>
  $(function(){
    $('.js-category').click(function(){
      $parent = $(this).parent('li');
       if($parent.hasClass('js-show')){
                        $parent.removeClass('js-show');
                        $(this).children('i').removeClass('icon-jiantouyoujiantou1').addClass('icon-jiantouyoujiantou');
                    }else{
                        $parent.siblings().removeClass('js-show');
                        $parent.addClass('js-show');
                        $(this).children('i').removeClass('icon-jiantouyoujiantou').addClass('icon-jiantouyoujiantou1');
                         $parent.siblings().find('i').removeClass('icon-jiantouyoujiantou1').addClass('icon-jiantouyoujiantou');
                    }
      });
    
    });    
      
      </script>
</body>
</html>